package homework.two;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        int money = 66;
        System.out.println("你消费的金额为"+money);
        System.out.println("选择消费方式：1.vx，2.zfb");
        Scanner scanner = new Scanner(System.in);
        switch (scanner.nextInt()){
            case 1:
                Pay vx = new Vx();
                vx.pay(money);
                break;
            case 2:
                Pay zfb = new Zfb();
                zfb.pay(money);
                break;
        }
    }
}
